package com.bnz.service;

import com.bnz.entity.PageResult;
import com.bnz.entity.Student;
import com.bnz.entity.StudentVo;

import java.util.List;

public interface StudentService {

    List<Student> findAll();

    //2. 分页查询
    PageResult<Student> findByPage(Integer page, Integer pageSize);

    PageResult<Student> search(Integer page, Integer pageSize, StudentVo vo);

    void add(Student student);
}
